package com.xbh.boot_study;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableAsync
@EnableScheduling
@ImportResource(locations = {"classpath:META_INF.spring/application-context.xml"})
@SpringBootApplication
public class BootStudyApplication {

    //@AutoConfigurationPackage：自动配置包，将主配置类（@SpringBootApplication标注的类）
    //                              的所在包及下面所有子包 里面的 所有组件扫描到 Spring 容器中
    public static void main(String[] args) {
        SpringApplication.run(BootStudyApplication.class, args);

        System.out.println("#################启动成功");
    }

}
